import { defineStore } from "pinia";
// import Router from "@/router";
const state = {
  darkTheme: false,
  list: [],
  userInfo: {},
};
export default defineStore("pinia", {
  state: () => {
    return JSON.parse(JSON.stringify(state));
  },
  getters: {},
  actions: {
    clear() {
      for (const key in state) {
        // console.log(state[key]);
        this[key] = state[key];
      }
    },
  },
  persist: true,
});
